package com.beamfield.dao.sys;

import com.beamfield.model.Resume;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface ResumeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Resume record);

    int insertSelective(Resume record);

    Resume selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Resume record);

    int updateByPrimaryKey(Resume record);

    List<Resume> selectPage(@Param("beamId") long beamId,
                            @Param("offset") String offset,
                            @Param("limit") String limit,
                            @Param("ecode") String ecode);

    long countPage(@Param("beamId") long beamId,@Param("ecode") String ecode);

    int updateBeamIdByEcode(@Param("ecode") String ecode, @Param("beamId") String acBemaId);
}